Hệ thống hiệu sách thương mại điện tử

1 <?php
2 if
($_POST["submit"]=="query")
3 {
4     $recipient=
"shivangi.gupta1404@gmail.com";
5     $subject=
"Query from bookstore";
6     $sender=$_POST[
"sender"];
7     $senderEmail=$_POST[
"senderEmail"];
8     $message=$_POST[
"message"];
9     $mailBody=
"Name: $sender\nEmail: $senderEmail\n\n$message";
10     mail($recipient, $subject, $mailBody,
"From: $sender <$senderEmail>");
11
12     $resSub =
"Confirmation of receiving your query";
13     $resBody=
"Dear ". $sender ."\n\nThanks for reaching us.\nThis is to inform you that we have received your query. We will get back to you asap.";
14     $note=
"\n\nNote : This is an auto-generated mail do not reply to this.\nFrom: http://bookstoreproject.16mb.com/";
15     $resBody=$resBody . $note;
16     mail($senderEmail , $resSub , $resBody);
17     header(
"location: index.php?response="."Your Message has been successfully sent! Our customer executive would respond shortly.");
18 }
19 ?>


Gõ tìm kiếm nhanh...